/*
 * @Author: szx
 * @Date: 2022-04-14 12:52:11
 * @LastEditTime: 2022-04-14 12:55:16
 * @Description:
 * @FilePath: \leetcode\1600-1699\1672\1672.js
 */
/**
 * @param {number[][]} accounts
 * @return {number}
 */
var maximumWealth = function (accounts) {
    let res = -Infinity;
    let max;
    for (let acc of accounts) {
        max = acc.reduce((p, v) => p + v, 0);
        if (max > res) res = max;
    }
    return res;
};
